#include<iostream>
#include "CComplex.h"
#include "containers.h"
#include "client.h"

void test1()//complex类基础测试
{
	using namespace std;

	CComplex my1(1, 2), my2(-11, -3), my3;
	cout<<"\ntest(my1): "<<my1<<endl;
	cout<<"test(my2): "<<my2<<endl;
	cout<<"test++(front): "<<++my1<<endl;
	cout<<"test++(behind): "<<my1++<<endl;
	cout<<"test+: "<<my1 + my2<<endl;
	cout<<"test-: "<<my1 - my2<<endl;
	cout<<"test*: "<<my1 * my2<<endl;
	cout<<"test/: "<<my1 / my2<<endl;
	my3 = my2;
	cout<<"test=: "<<my3<<endl;
}
void test2()//comtainer的派生类基础测试
{
	std::cout<<std::endl<<std::endl;
	std::cout<<cube(5);
	std::cout<<sphere(5);
	std::cout<<cylinder(5);
	std::cout<<std::endl;
}
void test3(int args, char* argv[])
{
	QApplication a(args, argv);
	client now(std::string("192.168.137.94"), std::string("9190"));
	a.exec();
}
int main(int args, char* argv[])
{
	//test1();
	//test2();
	//std::system("pause");
	test3(args, argv);
	return 0;
}